package com.demo.ognl.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author peter
 * @date 2021/11/22 上午1:12
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class User {

    /**
     * 用户名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    public String say() {
        return String.format("[%s] say...", name);
    }
}
